<?php
   $proType_result = mysql_query("select id,name from pro_type where flag =1");
   
   while($proType_row = mysql_fetch_array($proType_result))
   {
?>
		<option value="<?php echo $proType_row['id'];?>" <?php if($type_id==$proType_row['id']){echo "selected";}?>><?php echo $proType_row['name'];?></option>
<?php
   }
?>